from strutils import parseInt

echo("Your name,please?")

var name:string=readLine(stdin)
echo("Hi, ",name,"!")
var x,y=3
echo "x ",x," y ",y

echo " A number please: "
let n=parseInt(readLine(stdin))

case n
of 0..2,4..7: echo("The number is in the set :{0,1,2,4,5,6,7}")
of 3,8: echo("the number is 3 or 8")
else: discard

for i in countup(1,20):
  echo("hello,world,this is a long test ok"[1..i])

proc yes(question: string): bool =
  echo(question," (y/n)")
  while true:
    case readLine(stdin)
    of "y","Y","yes","Yes": return true
    of "n","N","No","no": return false
    else: echo("please be clear: yes or no")

if yes("should i delete all your important files?"):
  echo("i'm sorry,i'm afraid i can't do that")
else:
  echo("I think you know what the problem is just as well as i do")








